<?php
class Visitor extends EMongoDocument{
    public $booked;
    public $date;
    public $ip;
    public $hotel;
    public $version;
    public $cancel;

    public function rules(){
        return array(
            array('cancel,booked,date,ip,hotel','safe')
        );
    }
    public static function model($className = __CLASS__){
        return parent::model($className);
    }
    public function getCollectionName() {
        return 'visitors';
    }
}
?>
